﻿

using System.Collections.Generic;

namespace EpiInfoCloudMagpiBridge.Models
{

    public class DropDownCollection
    {
        public int SelectedItemId { get; set; }
        public string SelectedItemValue { get; set; }            
        public IEnumerable<MagpiAzureMapping> Items { get; set; }
    }

    public class MagpiAzureMappingHelper
    {

        public List<MagpiAzureMapping> MagpiNotRegisteredList;

        public List<MagpiAzureMapping> MagpiAzureRegisteredList { get; set; }
        public List<MagpiAzureMapping> MagpiTotalList { get; set; }
        public MagpiAzureMapping NewMapping { get; private set; }

        public DropDownCollection DropDownCollection
        {
            get
            {

                DropDownCollection ddc = new DropDownCollection
                {
                    SelectedItemId = -1,
                    Items = MagpiNotRegisteredList
                };


                return ddc;
            }
        }


        public MagpiAzureMappingHelper()
        {

            MagpiAzureRegisteredList = new List<MagpiAzureMapping>();
            MagpiTotalList = new List<MagpiAzureMapping>();
            MagpiNotRegisteredList = new List<MagpiAzureMapping>();

            NewMapping = new MagpiAzureMapping();    




        }
    }
}